package com.atguigu.service;


import com.atguigu.base.BaseService;
import com.atguigu.entity.Dict;

import java.util.List;
import java.util.Map;

public interface DictService extends BaseService<Dict>{

    //根据父节点的id查询子节点的树形结构
    List<Map<String, Object>> findZnodes(Long id);

    //根据父节点的dictCode查询子节点的列表
    List<Dict> findListByParentDictCode(String parentDictCode);

    //根据父节点的id查询子节点的列表
    List<Dict> findListByParentId(Long parentId);
}
